CFLAGS = -I znet
CC = gcc

all:
	$(CC) -o tunnel main.c tunnel.c znet/znet.c $(CFLAGS)

example:
	$(CC) -o tx example.c tunnel.c znet/znet.c $(CFLAGS) -D TX
	$(CC) -o rx example.c tunnel.c znet/znet.c $(CFLAGS) -D RX

clean:
	rm -f *.o *.out tunnel tx rx
